package itdep.domain.student;

import ga.hibernate.OrderedEnum;
import ga.i18n.Translatable;
import itdep.domain.TranslationType;

import java.util.Collection;

public enum RelationType implements OrderedEnum, Translatable {
	MOTHER(0, "mother"),
	FATHER(1, "father");

	private TranslationType translationType = TranslationType.STANDARD;
	private String type = "relation-type";
	private int order;
	private String code;

	RelationType(int order, String code) {
		this.order = order;
		this.code = code;
	}

	public int getOrder() {
		return order;
	}

	public String getTranslationType() {
		return type;
	}

	public String getTranslationCode() {
		return code;
	}

	public Collection<String> getTranslationVariants() {
		return translationType.getVariants();
	}
}